//2009/08/30 00:28:00
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class InverseFactoring
{
public:
    int getTheNumber(vector <int> factors)
    {
        sort(factors.begin(), factors.end());
        return factors[0] * factors[factors.size()-1];
    }
};
